import { createRouter, createWebHistory } from "vue-router";

const routes = [
  {
    path: '/',
    component: ()=>import('@/pages/index.vue')
  },
  {
    path: '/login',
    component: ()=>import('@/pages/login.vue')

  },
  {
    path: '/:pathMatch(.*)*',
    component: ()=>import('@/pages/notFound.vue')
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes:routes
})

export default router